std::clock
From Cppreference
| C++ Standard Library | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Utilities library | ||||||||||||||||
| Date and time utilities | ||||||||||||||||
| ||||||||||||||||
| C-style date and time utilities | ||||||||||||||||
| Defined in header <ctime>
|
||
| clock_t clock( void );
|
||
Returns raw processor clock time since the program is started. To convert result value to seconds divide it by CLOCKS_PER_SEC.
Contents |
[edit] Parameters
(none)
[edit] Return value
raw processor clock time since the program has started or 1 if that information is unavailable.
[edit] Example
| This section is incomplete |
[edit] See also
|
converts a tm object to a textual representation (function) |
|
|
returns the current time of the system as time since epoch (function) |
|